package com.huixuebao.after.controller.dictionary;

import com.huixuebao.after.dto.DictionaryDTO;
import com.huixuebao.after.service.DictionaryService;
import com.huixuebao.common.bean.ApiResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;


@Slf4j
@RestController()
@RequestMapping("hxb/after/dictionary")
public class DictionaryController {

    @Autowired
    DictionaryService dictionaryService;

    /**
     * 获取字典表分类树结构
     * @return
     */
    @GetMapping("/dictionaryTree")
    public ApiResult buildAreaTree() {
        return dictionaryService.dictionaryTree();
    }

}
